package com.xbongbong.pro.statistic.manager.feign;

import com.xbongbong.paas.toolbox.wrap.XbbResponse;
import com.xbongbong.pro.datawarning.pojo.dto.DataWarningMessageAddDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @ClassName DataCenterFeignClient
 * @Description TODO  
 * @Author mengna.Deng 
 * @Date 2021/4/21 15:38 
 * @Version 1.0
 */
@FeignClient(name = "pro-web-pc",contextId = "dataCenterFeignClient")
public interface DataCenterFeignClient {
    /**
     * 数据预警批量保存
     * @param dataWarningMessageAddDTO 入参
     * @return 回参
     */
    @RequestMapping(value = "/pro/v1/dataCenter/dataWarning/message/add", method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_VALUE, produces = MediaType.APPLICATION_JSON_VALUE)
    XbbResponse<String> messageAdd(@RequestBody DataWarningMessageAddDTO dataWarningMessageAddDTO);

}
